package io.bdmc.modules.bss.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.bdmc.common.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 子机框电源数据表 实体
 * </p>
 *
 * @author 黄露
 * @since 2021-04-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
// "DeviceMachinePower对象", description = "子机框电源数据表")
public class DeviceMachinePower extends Model<DeviceMachinePower> {

  private static final long serialVersionUID = 1L;

  // "子机框电源id")
  @TableId(value = "power_id", type = IdType.AUTO)
  private Integer powerId;

  // private Integer machineDiskId;

  @Excel(name = "电源名称")
  private String powerName;

  @Excel(name = "单盘SN")
  private String diskSn;

  // "电源类型")
  private String powerType;

  // "电源位置")
  private String powerLocation;

  // "电源电压")
  @Excel(name = "电源电压")
  private String powerVol;

  // "创建时间")
  @Excel(name = "创建时间")
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  private LocalDateTime createTime;

  private Boolean intervalSave;

  @Override
  public Serializable pkVal() {
    return this.powerId;
  }

}
